package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements java.io.Serializable{

    private ObjectId id; //主键id
    private Long userId; //发布人id
    private Long sid; //唯一标识 推荐系统
    private Long created; //创建时间

    private String soundUrl;//语音地址
    private String state;//语音是否被接收 未接收:0/接收:1

}